﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:modeSelector="clr-namespace:DeepEarth.Toolkit.Controls">

    <Style TargetType="modeSelector:MapModeSelector">
        <Setter Property="Foreground" Value="Black" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="modeSelector:MapModeSelector">
                    <ComboBox x:Name="PART_modesSelector" Foreground="{TemplateBinding Foreground}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="modeSelector:ShowStreetsSelector">
        <Setter Property="Foreground" Value="White" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="modeSelector:ShowStreetsSelector">
                    <CheckBox x:Name="PART_showStreetsSelector" Foreground="{TemplateBinding Foreground}" Content="Show Streets" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="modeSelector:OverlayModesSelector">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="modeSelector:OverlayModesSelector">
                    <ItemsControl x:Name="PART_overlayModesSelector">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <CheckBox
                                    Foreground="White"
                                    Command="{Binding SelectedCommand}" 
                                    IsChecked="{Binding IsChecked}" 
                                    Content="{Binding Path=Mode.Name}" />
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
